<?php
/* @var $this ProductController */
/* @var $model Product */
/* @var $form CActiveForm */
?>

<div class="form">

<?php $form=$this->beginWidget('bootstrap.widgets.BootActiveForm', array(
	'id'=>'product-form',
	'enableAjaxValidation'=>false,
)); ?>

	<p class="note">Fields with <span class="required">*</span> are required.</p>

	<?php echo $form->errorSummary($model); ?>

	<div>
		<?php echo $form->labelEx($model,'product_name'); ?>
		<?php echo $form->textField($model,'product_name',array('size'=>60,'maxlength'=>100,'readonly'=>true)); ?>
		<?php echo $form->error($model,'product_name'); ?>
	</div>

    <div>
        <?php echo $form->labelEx($model, 'product_introduce'); ?>
        <div class="controls" style="margin-bottom: 10px;">
            <?php
            $this->widget('ext.helpers.ckeditor.widgets.ExtEditMe', array(
                'model' => $model,
                'value' => $model['product_introduce'],
                'attribute'=>'product_introduce',
                "toolbar"=>"Full",
                'height' => '400px',
                'width' => '100%',
            ));
            ?>
            <?php echo $form->error($model, 'product_introduce'); ?>
        </div>
        <?php echo $form->error($model, 'product_introduce'); ?>
    </div>

    <div class="row-actions">
        <?php $this->widget('bootstrap.widgets.BootButton', array('buttonType' => 'submit', 'type' => 'primary', 'icon' => 'ok', 'label' => $model->isNewRecord ? 'Create' : 'Save')); ?>
    </div>

<?php $this->endWidget(); ?>

</div><!-- form -->